package com.lykj.modules.shop.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lykj.core.tenant.mp.TenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 用户账单表实体类
 *
 * @author cxl
 * @since 2022-01-14
 */
@Data
@TableName("shsy_user_bill")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "UserBill对象", description = "用户账单表")
public class UserBill extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户ID
	 */
	@ApiModelProperty(value = "用户ID")
	private Long userId;

	/**
	 * 对方用户ID（转账用）
	 */
	@ApiModelProperty(value = "对方用户ID（转账用）")
	private Long otherUserId;
	/**
	 * 关联ID
	 */
	@ApiModelProperty(value = "关联ID")
	private Long linkId;
	/**
	 * 方向0支出，1收入
	 */
	@ApiModelProperty(value = "方向0支出，1收入")
	private Integer pm;
	/**
	 * 账单标题
	 */
	@ApiModelProperty(value = "账单标题")
	private String title;
	/**
	 * 明细种类
	 */
	@ApiModelProperty(value = "明细种类")
	private Integer category;
	/**
	 * 明细类型
	 */
	@ApiModelProperty(value = "明细类型")
	private Integer type;
	/**
	 * 明细数字
	 */
	@ApiModelProperty(value = "明细数字")
	private BigDecimal number;
	/**
	 * 手续费
	 */
	@ApiModelProperty(value = "手续费")
	private BigDecimal service;
	/**
	 * 实际数字
	 */
	@ApiModelProperty(value = "实际数字")
	private BigDecimal actual;
	/**
	 * 账户余额
	 */
	@ApiModelProperty(value = "账户余额")
	private BigDecimal balance;
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	private String remark;
	/**
	 * 众鸟交易ID
	 */
	@ApiModelProperty(value = "众鸟交易ID")
	private String znId;

	/**
	 * 用户账号
	 */
	@ApiModelProperty(value = "用户账号")
	@TableField(exist = false)
	private String account;
	/**
	 * uid
	 */
	@ApiModelProperty(value = "uid")
	@TableField(exist = false)
	private Long uid;
}
